package com.supor.aiot.common.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * ---------------------------------------------------------------- <br>
 * Copyright (C) 2014-2020, by het, Shenzhen, All rights reserved.  <br>
 * ---------------------------------------------------------------- <br>
 * <p>
 * 描述:
 *      "agreementId": 1,
 *      "agreementType": "USERSERVERAGREE",
 *      "agreementStatus": "NORMAL",
 *      "createTime": "2020-10-23",
 *      "lastUpdate": "2021-03-24 17:20:31",
 *      "isDel": 0,
 *      "note": null,
 *      "remark": null,
 *      "agreementContext": ""
 * 作者: lei <br>
 * 日期: 2020/12/8 <br>
 */
public class UserAgreementBean implements Parcelable {
    int agreementId;
    String agreementType;
    String agreementStatus;
    // String agreementContext;
    String createTime;
    String lastUpdate;
    int isDel;
    int isNotice;
    String note;
    String remark;

    public int getAgreementId() {
        return agreementId;
    }

    public void setAgreementId(int agreementId) {
        this.agreementId = agreementId;
    }

    public String getAgreementType() {
        return agreementType;
    }

    public void setAgreementType(String agreementType) {
        this.agreementType = agreementType;
    }

    public String getAgreementStatus() {
        return agreementStatus;
    }

    public void setAgreementStatus(String agreementStatus) {
        this.agreementStatus = agreementStatus;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getLastUpdate() {
        return lastUpdate;
    }

    public void setLastUpdate(String lastUpdate) {
        this.lastUpdate = lastUpdate;
    }

    public int getIsDel() {
        return isDel;
    }

    public void setIsDel(int isDel) {
        this.isDel = isDel;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getIsNotice() {
        return isNotice;
    }

    public void setIsNotice(int isNotice) {
        this.isNotice = isNotice;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.agreementId);
        dest.writeString(this.agreementType);
        dest.writeString(this.agreementStatus);
        // dest.writeString(this.agreementContext);
        dest.writeString(this.createTime);
        dest.writeString(this.lastUpdate);
        dest.writeInt(this.isDel);
        dest.writeInt(this.isNotice);
        dest.writeString(this.note);
        dest.writeString(this.remark);
    }

    public UserAgreementBean() {
    }

    protected UserAgreementBean(Parcel in) {
        this.agreementId = in.readInt();
        this.agreementType = in.readString();
        this.agreementStatus = in.readString();
        // this.agreementContext = in.readString();
        this.createTime = in.readString();
        this.lastUpdate = in.readString();
        this.isDel = in.readInt();
        this.isNotice = in.readInt();
        this.note = in.readString();
        this.remark = in.readString();
    }

    public static final Creator<UserAgreementBean> CREATOR = new Creator<UserAgreementBean>() {
        @Override
        public UserAgreementBean createFromParcel(Parcel source) {
            return new UserAgreementBean(source);
        }

        @Override
        public UserAgreementBean[] newArray(int size) {
            return new UserAgreementBean[size];
        }
    };
}
